package com.ui;

import com.service.IAccountService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Client {
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("Bean.xml");
        IAccountService iAccountService=(IAccountService) applicationContext.getBean("accountImpl");//小写
        iAccountService.saveAccount();
    }
}
